@use '@angular/material' as mat;

@mixin layout-setting($theme) {
  $config: mat.m2-get-color-config($theme);
  $foreground: map-get($config, foreground);
  $background: map-get($config, background);
  $primary: map-get($config, primary);
  $accent: map-get($config, accent);
  $warn: map-get($config, warn);
  .layout-setting {
    .mat-mdc-tab-header {
      background-color: mat.m2-get-color-from-palette($background, background);
    }

    .none-description {
      background-color: mat.m2-get-color-from-palette($warn, 0.1);
      border-left: 4px solid mat.m2-get-color-from-palette($warn);
      @include mat.elevation(3, mat.m2-get-color-from-palette($background, tooltip), 0.4);
    }

    .loop-elements {
      .mat-mdc-list-item {
        background-color: mat.m2-get-color-from-palette($primary, 0.2);
        .mat-mdc-list-item-icon {
          color: mat.m2-get-color-from-palette($foreground, text, 0.4);
        }
        &:hover {
          background-color: mat.m2-get-color-from-palette($primary, 0.4);
        }
      }
    }
  }
}
